package com.study.selection.service;


import com.study.selection.model.News;
import org.springframework.stereotype.Service;

import java.util.List;

public interface NewsService {
    List<News> findAll();

    List<News> findByKey(String key);

    boolean addNews(News news);

    News getById(int news_id);

    boolean updateNews(News news);
    // 逻辑删除
    boolean deleteNews(int news_id);

}

